import { vecLayerGroup, imgLayerGroup } from '../../../map_libs/tianditu.js'

import { gaodeLayerGroup } from '../../../map_libs/gaode'
import { prototype } from '../../../main'

export const newMap = () => {
  const map = new ol.Map({
    target: 'map',
    layers: [
      vecLayerGroup
      // gaode
      // gaode_yingxiang
    ],
    view: new ol.View({
      projection: 'EPSG:4326',
      center: [114.3, 30.5],
      zoom: 10,
      minZoom: 4
    })
  })
  prototype.$map = map
}
